package sdto

import "time"


type TripInfo struct {
	ID uint `json:"id" column:"id"` 
	Days uint `json:"days" column:"days"` 
	StartSite string `json:"start_site" column:"start_site"` 
	EndSite string `json:"end_site" column:"end_site"` 
	Remark string `json:"remark,omitempty" column:"remark"` 
	PlaceDataJson string `json:"place_data_json,omitempty" column:"place_data_json"` 
	ItemDataDataJson string `json:"item_data_json,omitempty" column:"item_data_json"` 
	CreatedAt time.Time `json:"created_at,omitempty" column:"created_at"` 
	UpdatedAt time.Time `json:"updated_at,omitempty" column:"updated_at"` 

}


type TripCreate struct {
	Days uint `json:"days" column:"days"` 
	StartSite string `json:"start_site" column:"start_site"` 
	EndSite string `json:"end_site" column:"end_site"` 
	Remark string `json:"remark,omitempty" column:"remark"` 
	PlaceDataJson string `json:"place_data_json,omitempty" column:"place_data_json"` 
	ItemDataDataJson string `json:"item_data_json,omitempty" column:"item_data_json"` 

}

type TripUpdate struct {
	ID uint `json:"id" column:"id"` 
	Days uint `json:"days" column:"days"` 
	StartSite string `json:"start_site" column:"start_site"` 
	EndSite string `json:"end_site" column:"end_site"` 
	Remark string `json:"remark,omitempty" column:"remark"` 
	PlaceDataJson string `json:"place_data_json,omitempty" column:"place_data_json"` 
	ItemDataDataJson string `json:"item_data_json,omitempty" column:"item_data_json"` 

}

type TripDelete struct {
	ID []uint `json:"id" column:"id"` 

}




// 表名定义，这样就可以直接把dto传给gorm直接处理并且能识别成正确的表名
func ( TripInfo) TableName() string {
	return "trips"
}

func ( TripCreate) TableName() string {
	return "trips"
}



func ( TripUpdate) TableName() string {
	return "trips"
}


func ( TripDelete) TableName() string {
	return "trips"
}